//
//  OPNoteAnnotionVIew.m
//  OnePiece
//
//  Created by lanou on 15/10/30.
//  Copyright © 2015年 wsy. All rights reserved.
//

#import "OPNoteAnnotionView.h"
#import "OPAnnotation.h"

@implementation OPNoteAnnotionView

- (instancetype)initWithAnnotation:(id<MKAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithAnnotation:annotation reuseIdentifier:reuseIdentifier]) {
        self.canShowCallout = YES;
    }
    return self;
}

- (void)setAnnotation:(OPAnnotation *)annotation
{
    [super setAnnotation:annotation];
    self.image = [UIImage imageNamed:annotation.icon];
}


@end

